import React, { Component } from 'react'

// 直接参数
function ChildCpn(props) {
  const { name, age, height } = props

  return (
    <h2>{name + " " + age + " " + height}</h2>
  )
}


export default class App extends Component {
  render() {
    return (
      <div>
        <ChildCpn name="yz" age="18" height="1.88" />
        <ChildCpn name="jay" age="20" height="1.98" />
      </div>
    )
  }
}
